home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / SecalDemo / Inc / intuition / screens.inc < prev    next >
Text File  |  1998-06-24  |  5KB  |  211 lines

  1. include "inc/exec/types.inc";
  2. include "inc/graphics/gfx.inc";
  3. include "inc/graphics/clip.inc";
  4. include "inc/graphics/view.inc";
  5. include "inc/graphics/rastport.inc";
  6. include "inc/graphics/layers.inc";
  7. include "inc/utility/tagitem.inc";
  8.  
  9. def DRI_VERSION = (2);
  10.  
  11. struct DrawInfo is
  12.   dri_Version:uword;
  13.   dri_NumPens:uword;
  14.   dri_Pens:ulong;
  15.   dri_Font:ulong;
  16.   dri_Depth:uword;
  17.   dri_Resolution:struct is
  18.     X:uword;
  19.     Y:uword;
  20.   ;
  21.   dri_Flags:ulong;
  22.   dri_CheckMark:ulong;
  23.   dri_AmigaKey:ulong;
  24.   dri_Reserved[5]:ulong;
  25. ;
  26.  
  27. def DRIF_NEWLOOK = $00000001;
  28.  
  29. def DETAILPEN = ($0000);
  30. def BLOCKPEN = ($0001);
  31. def TEXTPEN = ($0002);
  32. def SHINEPEN = ($0003);
  33. def SHADOWPEN = ($0004);
  34. def FILLPEN = ($0005);
  35. def FILLTEXTPEN = ($0006);
  36. def BACKGROUNDPEN = ($0007);
  37. def HIGHLIGHTTEXTPEN = ($0008);
  38.  
  39. def BARDETAILPEN = ($0009);
  40. def BARBLOCKPEN = ($000a);
  41. def BARTRIMPEN = ($000b);
  42.  
  43. def NUMDRIPENS = ($000c);
  44.  
  45. def PEN_C3 = $fefc;
  46. def PEN_C2 = $fefd;
  47. def PEN_C1 = $fefe;
  48. def PEN_C0 = $feff;
  49.  
  50. struct Screen is
  51.   NextScreen:ulong;
  52.   FirstWindow:ulong;
  53.   LeftEdge,TopEdge:word;
  54.   Width,Height:word;
  55.   MouseY,MouseX:word;
  56.   Flags:uword;
  57.   Title:ulong;
  58.   DefaultTitle:ulong;
  59.   BarHeight,BarVBorder,BarHBorder,MenuVBorder,MenuHBorder:byte;
  60.   WBorTop,WBorLeft,WBorRight,WBorBottom:byte;
  61.   Font:ulong;
  62.   ViewPort:ViewPort;
  63.   RastPort:RastPort;
  64.   BitMap:BitMap;
  65.   LayerInfo:Layer_Info;
  66.   FirstGadget:ulong;
  67.   DetailPen,BlockPen:ubyte;
  68.   SaveColor0:uword;
  69.   BarLayer:ulong;
  70.   ExtData:ulong;
  71.   UserData:ulong;
  72. ;
  73.  
  74. def SCREENTYPE = $000f;
  75.  
  76. def WBENCHSCREEN = $0001;
  77. def PUBLICSCREEN = $0002;
  78. def CUSTOMSCREEN = $000f;
  79.  
  80. def SHOWTITLE = $0010;
  81. def BEEPING = $0020;
  82. def CUSTOMBITMAP = $0040;
  83. def SCREENBEHIND = $0080;
  84. def SCREENQUIET = $0100;
  85. def SCREENHIRES = $0200;
  86. def NS_EXTENDED = $1000;
  87.  
  88. def AUTOSCROLL = $4000;
  89.  
  90. def PENSHARED = $0400;
  91.  
  92. def STDSCREENHEIGHT = -1;
  93. def STDSCREENWIDTH = -1;
  94.  
  95. def SA_Dummy = (TAG_USER+32);
  96.  
  97. def SA_Left = (SA_Dummy+$0001);
  98. def SA_Top = (SA_Dummy+$0002);
  99. def SA_Width = (SA_Dummy+$0003);
  100. def SA_Height = (SA_Dummy+$0004);
  101. def SA_Depth = (SA_Dummy+$0005);
  102. def SA_DetailPen = (SA_Dummy+$0006);
  103. def SA_BlockPen = (SA_Dummy+$0007);
  104. def SA_Title = (SA_Dummy+$0008);
  105. def SA_Colors = (SA_Dummy+$0009);
  106. def SA_ErrorCode = (SA_Dummy+$000a);
  107. def SA_Font = (SA_Dummy+$000b);
  108. def SA_SysFont = (SA_Dummy+$000c);
  109. def SA_Type = (SA_Dummy+$000d);
  110. def SA_BitMap = (SA_Dummy+$000e);
  111. def SA_PubName = (SA_Dummy+$000f);
  112. def SA_PubSig = (SA_Dummy+$0010);
  113. def SA_PubTask = (SA_Dummy+$0011);
  114. def SA_DisplayID = (SA_Dummy+$0012);
  115. def SA_DClip = (SA_Dummy+$0013);
  116. def SA_Overscan = (SA_Dummy+$0014);
  117. def SA_Obsolete1 = (SA_Dummy+$0015);
  118. def SA_ShowTitle = (SA_Dummy+$0016);
  119. def SA_Behind = (SA_Dummy+$0017);
  120. def SA_Quiet = (SA_Dummy+$0018);
  121. def SA_AutoScroll = (SA_Dummy+$0019);
  122. def SA_Pens = (SA_Dummy+$001a);
  123. def SA_FullPalette = (SA_Dummy+$001b);
  124. def SA_ColorMapEntries = (SA_Dummy+$001c);
  125. def SA_Parent = (SA_Dummy+$001d);
  126. def SA_Draggable = (SA_Dummy+$001e);
  127. def SA_Exclusive = (SA_Dummy+$001f);
  128. def SA_SharePens = (SA_Dummy+$0020);
  129. def SA_BackFill = (SA_Dummy+$0021);
  130. def SA_Interleaved = (SA_Dummy+$0022);
  131. def SA_Colors32 = (SA_Dummy+$0023);
  132. def SA_VideoControl = (SA_Dummy+$0024);
  133. def SA_FrontChild = (SA_Dummy+$0025);
  134. def SA_BackChild = (SA_Dummy+$0026);
  135. def SA_LikeWorkbench = (SA_Dummy+$0027);
  136. def SA_Reserved = (SA_Dummy+$0028);
  137. def SA_MinimizeISG = (SA_Dummy+$0029);
  138.  
  139. def OSERR_NOMONITOR = (1);
  140. def OSERR_NOCHIPS = (2);
  141. def OSERR_NOMEM = (3);
  142. def OSERR_NOCHIPMEM = (4);
  143. def OSERR_PUBNOTUNIQUE = (5);
  144. def OSERR_UNKNOWNMODE = (6);
  145. def OSERR_TOODEEP = (7);
  146. def OSERR_ATTACHFAIL = (8);
  147. def OSERR_NOTAVAILABLE = (9);
  148.  
  149. struct NewScreen is
  150.   LeftEdge,TopEdge,Width,Height,Depth:word;
  151.   DetailPen,BlockPen:ubyte;
  152.   ViewModes:uword;
  153.   Type:uword;
  154.   Font:ulong;
  155.   DefaultTitle:ulong;
  156.   Gadgets:ulong;
  157.   CustomBitMap:ulong;
  158. ;
  159.  
  160. struct ExtNewScreen is
  161.   LeftEdge,TopEdge,Width,Height,Depth:word;
  162.   DetailPen,BlockPen:ubyte;
  163.   ViewModes:uword;
  164.   Type:uword;
  165.   Font:ulong;
  166.   DefaultTitle:ulong;
  167.   Gadgets:ulong;
  168.   CustomBitMap:ulong;
  169.   Extension:ulong;
  170. ;
  171.  
  172. def OSCAN_TEXT = (1);
  173. def OSCAN_STANDARD = (2);
  174. def OSCAN_MAX = (3);
  175. def OSCAN_VIDEO = (4);
  176.  
  177. struct PubScreenNode is
  178.   psn_Node:Node;
  179.   psn_Screen:ulong;
  180.   psn_Flags:uword;
  181.   psn_Size:word;
  182.   psn_VisitorCount:word;
  183.   psn_SigTask:ulong;
  184.   psn_SigBit:ubyte;
  185. ;
  186.  
  187. def PSNF_PRIVATE = ($0001);
  188.  
  189. def MAXPUBSCREENNAME = (139);
  190.  
  191. def SHANGHAI = $0001;
  192. def POPPUBSCREEN = $0002;
  193.  
  194. def SDEPTH_TOFRONT = (0);
  195. def SDEPTH_TOBACK = (1);
  196. def SDEPTH_INFAMILY = (2);
  197.  
  198. def SPOS_RELATIVE = (0);
  199. def SPOS_ABSOLUTE = (1);
  200. def SPOS_MAKEVISIBLE = (2);
  201. def SPOS_FORCEDRAG = (4);
  202.  
  203. struct ScreenBuffer is
  204.   sb_BitMap:ulong;
  205.   sb_DBufInfo:ulong;
  206. ;
  207.  
  208. def SB_SCREEN_BITMAP = 1;
  209. def SB_COPY_BITMAP = 2;
  210.  
  211.